[@b.head/]
[@b.form action="!update" name="inforForm" theme="list"]
<table class="table">
<tr>
	<td>
		<label for="tel" style="font-size:14px;">&nbsp;&nbsp;Tel:&nbsp;</label>
	</td>
	<td>
		<input id="tel" name="tel"style="width:150px;" class="form-control input-sm"/>
	</td>
</tr>
<tr>
  <td>
    <label for="weChat" style="font-size:14px;">&nbsp;&nbsp;WeChat:&nbsp;</label>
  </td>
  <td>
    <input id="weChat" name="weChat"style="width:150px;" class="form-control input-sm"/>
  </td>
</tr>
<tr>
	<td>
		<label for="email" style="font-size:14px;">&nbsp;&nbsp;E-mail:&nbsp;</label>
	</td>
	<td>
		<input id="email" name="email"style="width:150px;" check="match('email').maxLength(100)" class="form-control input-sm"/>
	</td>
</tr>
<tr>
	<td>
		<label for="address" style="font-size:14px;">&nbsp;&nbsp;Address:&nbsp;</label>
	</td>
	<td>
		<input id="address" name="address"style="width:150px;" class="form-control input-sm"/>
	</td>
</tr>
<tr>
	<td>
		<label for="landlord" style="font-size:14px;">&nbsp;&nbsp;Landlord Tel:&nbsp;</label>
	</td>
	<td>
		<input id="landlord" name="landlord"style="width:150px;" class="form-control input-sm"/>
	</td>
</tr>
<tr>
  <td>
    <label for="portrait" style="font-size:14px;">&nbsp;&nbsp;head portrait:&nbsp;</label>
  </td>
  <td>
    <input name="attachment" type="file" />
  </td>
</tr>
</table>
[@b.formfoot]
    <pre>
     Attentions: the image formate includes:jpg,jpeg,png,gif.
                 the photo maybe used for Admission of exams,please upload your own face photo!
  </pre>
	[@b.submit value="Confirm" class="btn btn-default"/]
		<input type="hidden" name="student.code" value="${(student.code)!}"/>
    [/@]
[/@]
[@b.foot/]
[#--
  <form name="pageGoForm" action="<#if studentId?exists>studentPhoto.do?method=upload&student.id=${studentId}<#else>photoByStudent.do?method=upload</#if>"  method="post" enctype="multipart/form-data"> 
       <table border=0 align='center'>
         <tr>
          <td>
          <input type="file" name="studentFile" class="buttonStyle" value='${RequestParameters.studentFile?if_exists}'>&nbsp; 
          <input type="button" value="<@bean.message key="system.button.submit" />" name="submitNow" onClick="validateExtendName(this.form)" class="buttonStyle"><br><br>
          </td>
       </tr>
     </table>      
  </form>
  
  <script>
  var picFormat = {
  'jpg':true,
  'png':true,
  'jpeg':true,
  'gif':true
  };
  function validateExtendName(form){
    var value=form.studentFile.value;
    var index=value.lastIndexOf(".");
    var postfix=value.substring(index+1);
    if(picFormat[postfix.toLowerCase()]){
    }else{
    alert("请按照提示上传指定格式的图片!");
    return;
  }
  form.submit();
  }
</script>
--]